/**
 * gamelet
 *
 * outlook@China software studio
 * Copyright (c) 2008-2010. All Rights Reserved.
 * http://www.outlook.com
 */

package org.outlook.gamelet.role.tank1990;

import java.io.File;
import java.io.IOException;
import java.net.URL;

import org.apache.commons.io.FileUtils;
import org.outlook.common.resource.ResourceUtil;

/**
 * function:
 * @author Watson email: watson.wu@hotmail.com
 * @date 2011
 */
public class Tank1990 {
	
	private TankScene scene;
	
	void initScene() throws IOException {
		scene = new TankScene();
		URL url = getScenePath();
		String sceneContent = FileUtils.readFileToString(new File(url.getFile()), "utf-8");
		//parse map
	}

	private URL getScenePath() {
		final String packageString = getClass().getCanonicalName();
		System.out.println(packageString);
		URL scenePath = ResourceUtil.getAbsolutedPathInClasspath(packageString.replace(".", "/")+".properties");
		return scenePath;
	}
	
	public static void main(String[] args) {
		Tank1990 tank1990 = new Tank1990();
		try {
			tank1990.initScene();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
